package com.ms.p2p.provider;


import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.system.RbacDept;
import com.ms.p2p.entity.system.RbacRole;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


public interface RbacProvider {



    public RbacDept selectDeptByid(String id);


    List<Map<String,Object>> getRoles(String deptid);

    List findDepts();

    void deleteByDeptAndRoles(String deptid, String[] role);

    List<RbacRole>findDeptRolesByPid(int dept_id, String pid);


    int findCount();

    List<HashMap<String,Object>> findPager(PageBean page);

    void saveOrupdate(String id, String name);

    public boolean checkPremission(Integer id, String premission) ;

    List<Map<String, Object>> getPager(PageBean page);

}
